package com.haoniu.module.domain.database;

import com.haoniu.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

    
/**
 * 钱包表 user_wallet
 *
 * @author houyijun
 * @date 2019-01-24
 */
public class UserWallet extends BaseEntity{
	private static final long serialVersionUID = 1L;

	/** 主键 */
	private Integer id;
	/** 用户ID */
	private Integer userId;
	/** 支付密码 */
	private String payPassword;
	/** 密码盐 */
	private String paySalt;
	/** 未冻结金额 */
	private BigDecimal money;
	/** 冻结金额 */
	private BigDecimal freezeMoney;
	/** 银行卡号 */
	private String bankNumber;
	/** 银行名称 */
	private String bankName;
	/** 支付宝账号 */
	private String alipay;
	/** 创建时间 */
	private Date createTime;
	/** 更新时间 */
	private Date updateTime;
	/** 删除标识 0-未删除 2-已删除 */
	private Integer delFlag;

	public void setId(Integer id){
		this.id = id;
	}

	public Integer getId(){
		return id;
	}
	public void setUserId(Integer userId){
		this.userId = userId;
	}

	public Integer getUserId(){
		return userId;
	}
	public void setPayPassword(String payPassword){
		this.payPassword = payPassword;
	}

	public String getPayPassword(){
		return payPassword;
	}
	public void setPaySalt(String paySalt){
		this.paySalt = paySalt;
	}

	public String getPaySalt(){
		return paySalt;
	}
	public void setMoney(BigDecimal money){
		this.money = money;
	}

	public BigDecimal getMoney(){
		return money;
	}
	public void setFreezeMoney(BigDecimal freezeMoney){
		this.freezeMoney = freezeMoney;
	}

	public BigDecimal getFreezeMoney(){
		return freezeMoney;
	}
	public void setBankNumber(String bankNumber){
		this.bankNumber = bankNumber;
	}

	public String getBankNumber(){
		return bankNumber;
	}
	public void setBankName(String bankName){
		this.bankName = bankName;
	}

	public String getBankName(){
		return bankName;
	}
	public void setAlipay(String alipay){
		this.alipay = alipay;
	}

	public String getAlipay(){
		return alipay;
	}
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	public Date getCreateTime(){
		return createTime;
	}
	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}

	public Date getUpdateTime(){
		return updateTime;
	}
	public void setDelFlag(Integer delFlag){
		this.delFlag = delFlag;
	}

	public Integer getDelFlag(){
		return delFlag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("payPassword", getPayPassword())
            .append("paySalt", getPaySalt())
            .append("money", getMoney())
            .append("freezeMoney", getFreezeMoney())
            .append("bankNumber", getBankNumber())
            .append("bankName", getBankName())
            .append("alipay", getAlipay())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
